package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.service.wx.auth.AuthService;
import com.cskaoyan.util.GetLogedUser;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * 创建日期: 2022/05/07 21:36
 *
 * @author JinLu Zhou
 */
@RestController
@RequestMapping("wx/user")
public class WXUserController {
    @Autowired
    AuthService authService;

    @RequestMapping("index")
    public BaseRespVo index() {
        Integer userId = GetLogedUser.getUserId();

        return authService.index(userId);
    }
}
